function normal(data:Object, context:Object):Object
{
	var content:String="";

	content+="<moonlight name='"+context.slot+"' template='"+context.slot+"-albumListContainer' uri='"+context.uri+"'>";

	for (var i=0; i<data.count; i++)
	{
		content+=getAlbumItem(data.objects[i], context.slot);
	}

	content+="</moonlight>";

	var voData:Object=new Object();
	voData.content=content;
	voData.type="Template";

	// Packages.log("content: "+content, "debug");

	return voData;
}

function getAlbumItem(item:Object, slot:String):String
{	
	var cont:String;
	cont="<portlet name="+"'albumItem_"+item.recordAlbumId+"' drag='no' height='25'>";
	cont+="<textfield name='albumName_"+item.recordAlbumId+"' x='5' y='0' html='true' selectable='no' width='210' height='20'>"+item.name+"</textfield>";
	cont+="<hotspot name='aItem"+item.recordAlbumId+"' x='5' y='0' width='200' height='20' alpha='0'/>";
	cont+="<handler ins='"+slot+"-aItem"+item.recordAlbumId+"' type='onRollOver' src='lib:notes.system.events.StateFulButtonEvent.invokeRollOverEvent'/>";
	cont+="<handler ins='"+slot+"-aItem"+item.recordAlbumId+"' type='onRollOut' src='lib:notes.system.events.StateFulButtonEvent.invokeRollOutEvent'/>";
	cont+="<handler ins='"+slot+"-aItem"+item.recordAlbumId+"' type='onPress' src='lib:notes.system.events.StateFulButtonEvent.invokePressEvent'/>";
	cont+="<handler ins='"+slot+"-aItem"+item.recordAlbumId+"' type='onRelease' src='lib:notes.system.events.StateFulButtonEvent.invokeReleaseEvent'/>";
	cont+="<handler ins='"+slot+"-aItem"+item.recordAlbumId+"' type='onReleaseOutside' src='lib:notes.system.events.StateFulButtonEvent.invokeRollOutEvent'/>";
	cont+="</portlet>";

	return cont;
}